package com.sjq.demo.controller;


import com.alibaba.fastjson.JSONObject;
import com.sjq.demo.response.Result;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 人员表 前端控制器
 * </p>
 *
 * @author yer
 * @since 2020-12-23
 */
@RestController
@RequestMapping("/testUser")
public class TestUserController {

    /**
     * 测试
     * @return
     */
    @PostMapping("/test")
    @ResponseBody
    public Result test(){
        JSONObject obj = new JSONObject();
        obj.put("msg","测试");
        return Result.ok(obj.toJSONString());
    }
}
